#!/bin/bash
# 安装gazebo
source /opt/ros/*/setup.bash
# sudo curl https://packages.osrfoundation.org/gazebo.gpg --output /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
# echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
apt-get update -y
# apt-get install -y ros-${ROS_DISTRO}-ros-gzharmonic
apt-get install -y ros-${ROS_DISTRO}-ros-gz
# Clean up
rm -rf /var/lib/apt/lists/*  /tmp/* /var/tmp/*
apt-get clean && apt autoclean